Trim the strings.