diff --git a/app/core/src/main/resources/templates/split-pdf-by-sections.html b/app/core/src/main/resources/templates/split-pdf-by-sections.html
index 548abe217..aac54ee8f 100644
--- a/app/core/src/main/resources/templates/split-pdf-by-sections.html
+++ b/app/core/src/main/resources/templates/split-pdf-by-sections.html
@@ -79,6 +79,12 @@
// Initial draw
updateVisualAid();
+
+ // Removes all whitespace characters (spaces, tabs, newlines) as the user types
+ document.getElementById('pageToSplit').addEventListener('input', function () {
+ this.value = this.value.replace(/\s+/g, '');;
+ });
+