export const stripBrackets = (text: string) => { if (!text) { return text; } text = text.trim(); let index = text.indexOf('<'); if (index !== -1) { text = text.substring(index + 1); } index = text.indexOf('>'); if (index !== -1) { text = text.substring(0, index); } return text; };