Added support for space as a character