Remove illegal space character.