$name =~ s/\s+$//;