Added regexp check for whitespaces and test for it