add white space detection