working on regex for replace, fixed end