Fixed parsing title and names

Fixed error with parsing titles and names. Added Unit tests for each.