To format a string, use the .format () method, in scala you can use
Val formatted= “%s %i”.format (mystring.myInt)