small fix for makeFriendlyName() when the name finish with a cap it raised an exception