remove whitespace after switch loop