Fix broken Strimg#trim implementations, exposed by #254.