ignore spaces in calculation input