I have a string which I want to copy into a fixed length string.
For example I have a string s = "this is a string" that is 16 characters long
I want to copy this into a fixed length string s2 that is 4 characters long. So s2 will contain "this"
I also want to copy it into a fixed length string s3 that is 20 characters long. The end of the string will have extra spaces since the original string is only 16 characters long.