fixing bug when we encounter multiline string