[#4] Fixed a substring bug