@Override
    public Object invokeMethod(String name, Object args) {
        try {
            return super.invokeMethod(name, args);
        } catch (MissingMethodException e) {
            // lets try invoke the method on the real String
            return InvokerHelper.invokeMethod(toString(), name, args);
        }
    }
@ Override public Object invokeMethod ( String name , Object args ) { try { return super . invokeMethod ( name , args ) ; } catch ( MissingMethodException e ) { return InvokerHelper . invokeMethod ( toString ( ) , name , args ) ; } }
Overloaded to implement duck typing for Strings
so that any method that can't be evaluated on this
object will be forwarded to the toString() object instead.