UPDATE: stri_rtrim and stri_ltrim rewritten. Now removes every whitespace and still works faster than str_trim.