Switching PagesTfIdf toString to use StringBuilder