UDPATE: stri_trim_all rewritten - now trims all whitespaces. TODO: write this in cpp, not in R