src/java/org/pifan/util/StringUtils.java
/**
     * Pre-pend a period to the <tt>keySuffix</tt> if it doesn't already start
     * with one.
     * 
     * This method will return a blank string if the <tt>keySuffix</tt> object
     * is null.
     * 
     * @param keySuffix
     * @return
     */
Pre-pend a period to the keySuffix if it doesn't already start
with one.

This method will return a blank string if the keySuffix object
is null.

@param keySuffix
@return
Pre - pend a period to the keySuffix if it doesn ' t already start with one . This method will return a blank string if the keySuffix object is null . @param keySuffix @return
public static final String prePendPeriod(String keySuffix) {
        if (keySuffix == null) {
            logger.warn("Can't pre-pend a period to a null keySuffix...returning blank string");
            return "";
        }
        keySuffix = keySuffix.trim();
        if (!keySuffix.startsWith(".")) {
            keySuffix = "." + keySuffix;
        }
        return keySuffix;
    }
public static final String prePendPeriod ( String keySuffix ) { if ( keySuffix == null ) { logger . warn ( "Can't pre-pend a period to a null keySuffix...returning blank string" ) ; return "" ; } keySuffix = keySuffix . trim ( ) ; if ( ! keySuffix . startsWith ( "." ) ) { keySuffix = "." + keySuffix ; } return keySuffix ; }
Pre-pend a period to the <tt>keySuffix</tt> if it doesn't already start
 with one.
Pre - pend a period to the <tt > keySuffix< / tt > if it doesn ' t already start with one .