I I have a string and I would like to only use a portion of the string, what function should I use?

For example:
strString = "This is fun!"

I want to use "This is" only

How would I cut off everthing after "_f" and only use "This is"

Thanks for any help, VolFans