It will be good to mention in your article memory leaks problems that can be caused by using substring() method.