Added testcase
Optimized with StringBuilder