This function converts the given string data to an integer (which represents a Boolean).
Values resolving to TRUE:
1, up, on, true, enabled
Values resolving to FALSE
0, down, off, false, disabled
Returns a 1 if the given string is equivalent to true, and 0 if equivalent to false (or -1 if an error occurred).