I am trying to come up with a rule to create default passwords for school
students. I thought I had it until it was determinded that student
passwords for students with a lastname of 3 characters or less failed.
Default password would tale first 4 of lastname and last four of student
ID. What I want to do is pad 9's at the end of the lastname if it is less
than 4 characters.

Example: Lastname: Li --> Li99
Lee --> Lee9

plus the last 4 of studeny ID.
Is there an easy way to do that? Any help is appreciated.

Bob