Add whitespace trimming and string joining to utilities