-- Strip surrounding spaces and @ signs, then lowercase. CREATE OR REPLACE MACRO normalize_handle(h) AS lower(trim(trim(h), '@'));