Filter `undefined` in while statement
Align spacing between keyword and parenthesis