Correct usage of bool to str2bool