added comment to @ljo's earlier fix for handling chars A and up, adapted the fix to match the form of @jsnelson's original conditional logic