another version of trim_fill
split