fixed spaces that were causing equations not to display properly