fix string and numerical literal treatment and viterbi