use isspace function on current character.