diff --git a/index.html b/index.html
index b01d5d3..2afbabc 100644
--- a/index.html
+++ b/index.html
@@ -83,7 +83,7 @@
var input = removeAccents(document.getElementById('searchInput').value.toLowerCase());
// 空的話就不搜尋了
- if (input === '') {
+ if (input.trim() === '') {
document.getElementById('results').innerHTML = '喜歡這個工具的話,請多到 NiceChord.com 逛逛喔!';
return;
}