private static Function<String, String> capitalize() {
        return new Function<String, String>() {
            @Override
            public String apply( String arg ) {
                return capitalize( arg );
            }
        };
    }
Returns the given text with the first letter in upper case.

<h2>Examples:</h2>
<pre>
capitalize("hi") == "Hi"
capitalize("Hi") == "Hi"
capitalize("hi there") == "hi there"
capitalize("") == ""
capitalize(null) == null
</pre>
@param text the text to capitalize
@return text with the first letter in upper case
jgiven-core/src/main/java/com/tngtech/jgiven/impl/util/WordUtil.java