public static String surround ( final String value , final String prefix , final String suffix ) { validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; String _prefix = Optional . ofNullable ( prefix ) . orElse ( "" ) ; return append ( _prefix , value , Optional . ofNullable ( suffix ) . orElse ( _prefix ) ) ; }
Surrounds a value with the given prefix and suffix .