return get_the_tag_list with whitespace removed

$tags = get_the_tags();
$tag_links = array();

foreach((array)$tags as $tag)
  $tag_links[] = '<a href="'.get_tag_link($tag->term_id).'" rel="tag">'.str_replace(' ', '', $tag->name)).'</a>';

echo implode(', ', $tag_links);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)