Removing spaces from ocr-ed string