FIXED: Trim on directory, multiple replacement, already open file