parser: fix string handling