possible fix when adding to String.prototype

when adding to the String.prototype the KeypathParser breaks