Cleanup string handling in the A/B widget.