Adding char to string

You declared your string as 100 characters, so that is what strlen will return.

You should only fill that up to 99 chars in your for loop since the last element should be a null character.

If you want to add an Id to then only fill it up to 98 characters in your for loop.