Fixed memory leaks and improved concatstring
More memory leak fix
Merge pull request #2 from voldyman/test

Test