Added string to boolean conversion and validation