Implemented parseName() in a horrible, but probably functioning manner.
(to be re-written)