Spaces to normalised tabs