optimize: the Boolean.parseBoolean(String s) method should be used when converting a String to a Boolean type