Convert strings between different variable naming formats.