Completed trim(), trim() in-place, trimleft(), trimleft() in-place, trimright(), trimright() in-place interfaces and their tests