Eliminate spurious spaces from extracted text