Add helpful truncate method.

Just a little something I tend to use fairly often and think other people may appreciate having part of the string helper class.