Don't try indexing backward in strings if they are 0-length