replaced messy space char hack with try/except