Remove spurious characters