fixes Strings.trim methods