the list of methods should be set in the string through the sprintf instead of mixing string concatenation inside a sprintf