Driver: Various string-related cleanups.

Also fixes some funky formatting.