question: public static String convertToBox ( String s ) { String temp = s . replaceAll ( "_P_" , "+_" ) ; if ( temp . endsWith ( "_P" ) ) { temp = temp . substring ( 0 , temp . length ( ) - 2 ) + "+" ; } temp = temp . replaceAll ( "_" , " " ) ; return WordUtils . capitalizeFully ( temp ) ; }
target:  Converts a given string, s, from the Enumerator name to an nicely legible name. Any occurrence of "_P_" becomes a "+_". Then, any trailing "_P" become "+". Finally, all "_" are replaced by spaces and the string is fully capitalized.