use core StringUtils to compare hashes