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
Use String.PadRight which will space out a string so it is as long as the int provided.
int
var str = "hello world"; var padded = str.PadRight(30); // padded = "hello world "