removes double quotes and unused variables