solved euler55. fixed some bugs in string library along the way