working on replacement of strings (regex/glob)