Remove extra spaces from keywords