public static String makeMethodSafe(final String S){
  String name=makeHTMLNameSafe(S);
  name=name.replace("-","_");
  return name;
}

public static String makeMethodSafe ( final String S ) { String name = makeHTMLNameSafe ( S ) ; name = name . replace ( "-" , "_" ) ; return name ; }
replaces illegal characters that aren ' t allowed in code
