0-based string library with half open ranges