Fix previous char is space check for empty content.