changes string true and false to boolean