extra spaces removed for texts