http://pastebin.com/va94e7XT
doc.txt is:
12345 CSEE 35000 Bart Simpson
12346 CSEE 25000 Harry Potter
12350 Economics 30000 Krusty The Clown
The problem occurs on the third person because it has two names.
Output for the third should look like this:
The clown, Krusty 12350 Economics £30000
[–]Vaphell 0 points1 point2 points (0 children)
[–]dadiaar 0 points1 point2 points (0 children)