Added function for converting yes/no strings to boolean.