Fixed a bug concerning multiple whitespaces after cleaning