problems remove all whitespaces in a string steps generate sample string measure performace performance With 300,000 Unicode characters: 20ms