Would crash and burn on \n at end of dota2.txt

Which would appear in the original implementation of save.php. Trim
before writing prevents that, as well as a new check in index.html
before displaying the row to ensure there is data there.