=head3 trim C<< trim(I<$string>, I<$num>) >> Trims a string to a certain length, specified by $num.