Fix previous char is space check.