brick_str_to_hash function added