@jonboulle The problem is that TrimPrefix dose not return a bool to indicate if it did the trim.