get_remote_group(): rename local variable "space" to "wordlen"