fix gecom::trim() for gcc/clang