diff --git a/templates/includes/images_list.html.ep b/templates/includes/images_list.html.ep
index 1dfafe7..97c32b8 100644
--- a/templates/includes/images_list.html.ep
+++ b/templates/includes/images_list.html.ep
@@ -101,7 +101,7 @@
//TODO: rewrite it to vue/JS from jquery
var $temp = $("");
$("body").append($temp);
- $temp.val($(event.target).text()).select();
+ $temp.val($(event.target).text().trim()).select();
document.execCommand("copy");
$temp.remove();
},