add to_bool method into String