I have a Golang program that reads a string parameter from command line and passes it to the fmt.Sprintf function. Let\'s say tmp_str is the target string from command line.
In this particular case, you could require the command line users to always supply a %s verb, and explain they can truncate the string to zero length:
Hello Friends%.0s
or even shorter:
Hello Friends%.s
The output is plain:
Hello Friends