Deal more sanely with root level docs
Do not operate on any tags that contain potential php vars
Further work to deal with root level docs
Skip replaces if empty new_filestring is provided