string slicing can return nil