Remove unnecessary bracket notation