bug on string computation