fix string recognition