Reusable function to convert a string with a "true" (or "false") value to their boolean true or false equivalent.