export function capitalize(text: string): string { if (text.length === 0) return ''; return text[0].toUpperCase() + text.slice(1).toLowerCase(); } export function sanitize(text: string): string { return text.replace(/[\s@+!#$%^&*()[\]./<>{}]/g, ''); }