Update stringUtils

added new parameter to truncateString. Allows more control over what substring is deleted.