Fixing it so that collection specs that include . and [] are acceptable