'optimized' the clash script

Deleted the unnecessary printlist function. However, I'm having a new problem.
When the sensitive variables are loaded from the list, they contain newlines. I'll need to remove these. How should I do so?