finished StringvariableReplacement subtitution with fallbacks (and tests)