handle string with only whitespaces as empty
#2027 
Does this fix the non-deterministic behavior mentioned in #2027 ?<|||||>Yes, this should return `[]` for every string that only contains whitespace characters. <|||||>Ok, great, merging then, thanks!