remove text from within square braces