MOVED: substring() not working

This topic has been moved to Programming Questions.