private static String removeTemplateMarker(String str){
  return str.replaceAll("\\{\\{(.*?)\\}\\}","");
}

private static String removeTemplateMarker ( String str ) { return str . replaceAll ( "\\{\\{(.*?)\\}\\}" , "" ) ; }
removes template markers from a string assumes the standard prefix and suffix
