Added the'printf' method for strings.