replace all ' ' with '\s+' for future compatibility