diff --git a/src/Input.c b/src/Input.c
index aa44d91..1173a22 100644
--- a/src/Input.c
+++ b/src/Input.c
@@ -9,5 +9,9 @@ char* getUserInput() {
     printf("Ihre Eingabe: ");
     getline(&input, &size, stdin);
 
+ size_t len = strlen(input);
+    if (len > 0 && input[len - 1] == '\n') {
+        input[len - 1] = '\0';
+    }
     return input;
 }