attempt to fix string parsing