Patching substring function to only take one arguments instead of bounded arguments