v.19.13Bug Fix

Fixed Wrong Behaviour of Trim Functions Family

Fixed wrong behaviour of trim functions family. #6647 (alexey-milovidov)