implemented string remain