Fixed a bug that crashed on a blank name being returned

Also extended character name limit to 18 characters and changed
capitalisation for names that contained spaces.