Added hash string func