Hash Util for file (string, char str, ifstream)