Refactoring functions about substring.