Optimization of string musical instruments