Add rdoc to string overrides
Move string patching into env