Reuse the StringBuilder interface in the hash computation as well
Refact code a bit