substring(start, end)
사용하시면 될 것 같습니다.
http://itpangpang.xyz/276
답을 알려드리는것보다 어렵지 않은 내용이니 읽고 해보시면 될 것 같아요