removes [ and { mappings