Returns the number of characters if ws contains only ' ' chars, otherwise returns ws in single quotes.
See Implementation
Returns the number of characters if ws contains only ' ' chars, otherwise returns ws in single quotes.