added substr example