replacing [start] and [end] after text