more standart trim function