replace [ with <