handle white spaces