public static boolean parseBool(String s) { if (s.equals("true")) return true; if (s.equals("TRUE")) return true; if (s.equals("yes")) return true; if (s.equals("1")) return true; if (s.equals("on")) return true; return false; }