You can use String.PadRight :
mystring = mystring.PadRight(10, ' ');
(You can omit the second parameter, as in your case when using spaces).
Note that if a mystring already longer than 10 characters, it will stay longer. From your question it is not clear whether a string of exactly 10 characters is needed. If so, then do something like:
mystring = mystring.PadRight(10).Substring(0, 10);
source share