I\'m getting a string as a parameter.
string
Every string should take 30 characters and after I check its length I want to add whitespaces to the end of the st
You can use String.PadRight for this.
Returns a new string that left-aligns the characters in this string by padding them with spaces on the right, for a specified total length.
For example:
string paddedParam = param.PadRight(30);