Yes, you can generally use any brand of trimmer line with your string trimmer, but there are important considerations to ensure compatibility and optimal performance. First, check the trimmer's manual for the recommended line diameter, as using the wrong size can affect performance and potentially damage the trimmer. Most trimmers specify a range of line diameters they can accommodate. 
Second, consider the shape of the trimmer line. Common shapes include round, square, and twisted, each offering different cutting efficiencies and durability. While you can experiment with different shapes, ensure they are suitable for your trimmer's design and the type of vegetation you are cutting.
Third, the material of the trimmer line can vary, with options like nylon, reinforced nylon, or copolymer blends. Higher-quality materials may offer better durability and performance, especially for heavy-duty tasks.
Finally, while brand compatibility is generally not an issue, some manufacturers may offer proprietary lines designed to work best with their models. Using these can sometimes enhance performance or extend the life of the trimmer.
In summary, while you can use different brands of trimmer line, ensure the line's diameter, shape, and material are compatible with your trimmer's specifications and intended use.