public string calculateSpaces(BotCommand cmd) { int cmdLength = cmd.getCommand().Length; int usageLength = cmd.getUsage().Length; int spaceforcmdLength = 30 - cmdLength; int spaceforusageLength = 30 - usageLength; string spaces = cmd.getCommand() + ""; for (int i = 1; i < spaceforcmdLength; i++) { spaces += " "; } spaces += " - "; for (int i = 1; i < spaceforusageLength; i++) { spaces += " "; } spaces += cmd.getUsage(); return(spaces); }