add length option to string formatter