Fix random string concatenation bug and add extra test for blank server_name_prefix
Fix Rubocop warning