For Lugaru, the name field takes your first and last name in lowercase, and the registration code follows a four-group format like 8706-780-6173-8844.
The important part is that the code has to match the name you enter — the two are paired, so a valid code entered under the wrong name will be rejected. If you've lost your original details, Wolfire, the developer, distributed Lugaru freely at one point, so the legitimate route is to grab the current release and registration information from their official site rather than trusting a code posted on a forum.