add method to get trimmed hash