Updated base string traits and algorithms