trim debug printf