trim the string