Make a few adjustments after a code review of the PDF string parsing function