Removing unnecessary exception variable and quotes around symbol