public static String surround(String string,String prefix,String suffix){
  if (string.startsWith(prefix) == false) {
    string=prefix + string;
  }
  if (string.endsWith(suffix) == false) {
    string+=suffix;
  }
  return string;
}

public static String surround ( String string , String prefix , String suffix ) { if ( string . startsWith ( prefix ) == false ) { string = prefix + string ; } if ( string . endsWith ( suffix ) == false ) { string += suffix ; } return string ; }
surrounds the string with provided prefix and suffix if such missing from string .
