skip spaces in rainbow function