Use TrimPrefix instead of Index