added trim utility, gonna need it