Regex debugged for Instrument Replacer
Small changes to error checking
Discovered character offset bug. Also new bug (delete issue)