Issues with character parser please advice