Fix ValueError

Error was due to '\n' character contained in string.
Code complete - now solves Euler 13