longest common substring in two strings: dynamic programming: needs to fix result string