add multiple spaces detection