Replaced regex groups with string interpolation