correcting whitespaces