added front- and back-substring