rtrim and str_split