I've always used '{}'. I think you need it to handle filenames with spaces.
It would be a good idea to check the range of UIDs for regular users so you can't remove a system user's files.
This will extract the values.
Code:
egrep '^(UID|GID)_(MIN|MAX)' /etc/login.defs
Since this won't change for the distro, it would be easiest to assign these variables as constants at the beginning of the script and use the constant variables in the lines which check if the UID is in range.
Given the username, you could use "id" or "getent" to return a users UID. Perhaps you use centralized authentication, e.g. NIS or LDAP, and the user isn't in the /etc/passwd file.
id -ru ${username}
or
getent passwd ${username} | cut -d: -f3