Originally Posted by rhink
Ahh was making an assumption about what your problem was, looks like I was wrong.
About the null- you never initialized your "r" variable. Think about what r += s; is really doing, especially the first time through.
Yea, I just figured realized that. I initialized it as an empty string now but the duplication problem is still there. I know the problem is the r +=s but I'm going in circles trying to figure out the solution.