Returns a string with all characters removed after a given character. The original string is unmodified and a new string is returned with the characters removed. This searches backwards from the end of the string to the beginning and at the first occurrence of the character removes it and everything after it. Note that if you are calling this command from tier 2 then the returned string must be deleted when you are done with it.
string TruncateString( str, character )