Removing unnecessary brackets