remove unnecessary white spaces