fixing bug for string value