Added substring method