string.match -- allow matches of square brackets as magic characters

Removed some problematic code that was preventing matching of square brackets as magic characters.