Lithium battery string allocation