Patch the links method in the String class