Avoid duplicate enqueue
Strip whitespace