diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml
index 3c3cdf48634..9aece1d75c4 100644
--- a/app/views/accounts/show.html.haml
+++ b/app/views/accounts/show.html.haml
@@ -1,5 +1,5 @@
- content_for :page_title do
- display_name(@account).gsub(/:\w+:/, '') + " (#{acct(@account)})"
+ "#{display_name(@account).gsub(/:\w+:/, '').strip} (#{acct(@account)})".gsub(/\s+/, ' ')
- content_for :header_tags do
- if @account.user_prefers_noindex?