For example

1234567 would become 1234567X

12345678 Would stay the same

1234 would stay the same

123456789 Would stay the same

But would need to do this to approximately 20 strings of numbers but only want the X added to those with exactly 7 characters and to leave the others unchanged.