nornalize the extra space following all math