I feel like the error method should do this trimming.