Better way to get the user's name from device?
I made a function that extracts a user name from the device name. The idea is to skip setup steps to allow the user to go straight to play upon starting the app the first time. This is a sub-optimal approach , as I can never trust the device name to hold the name of the user. The question is: What is a better way to do this? My function below gets the right name ... ... if the default name of the device has not changed ("Sanna's iPod") ... in English, ... in French and similar ("iPod de Sanna") ... in Swedish and similar ("Sannas iPod") if the name does not end with S ("Johannes iPod" =>