You could multiplex the 20 strings through a (4x5) grid of 20 transistors.
Then you only need 9 pins, but you can only cycle one string at a time, so they would be slightly dimmer if more than one string was 'on'.
But, I would get a second opinion because I'm new here!