added handling for string 1/0