fixed bug in R splitstr for group names