string test for a string having space