Handle square brackets