added string to boolean function