added str2bool validation for the if statement and added a note in the readme noting that we now depend on stdlib