Optimization of Queue
Triming whitespace