getCommitHash function
input sanitize function