Improve Hashing performance

Changed strings to string builders