handle multiple spaces between numbers