Adjust regex to handle a single digit uid and gid

Changing the regex to match zero or more spaces will catch both five,
four and single digit user and group ids.