fixed bug where double digit parameter names were replaced incorrectly