xx intake year + first letter of firstname + first 5 letters of surname

We only just started using intake year on user accounts but the script that creates the accounts can handle duplicates anyway. it sticks a 1 or 2 etc at the end.
even with intake year there are occasions of pupils in the same year with the exact same name.