checked if a text is all white space characters in client side?