remove spaces from working formula and all space handling code