private static void inputStrToList(String cleanString) {


        //deletion of blanks at beginning or end of String
        if (cleanString.startsWith(" ")) {
            cleanString = cleanString.substring(1);
        }


        //temporary linked list with userInput
        LinkedList finalInputList = new <String>LinkedList();

        if (cleanString.equalsIgnoreCase(" ") || cleanString.isEmpty()) {
            clearInput();
        } else {
            //checking if there are more than one word
            if (cleanString.contains(" ")) {


                //Array for the splitted String
                String[] cleanStringArray;

                //splitting the input string into an array
                cleanStringArray = cleanString.split(" ");



                //filling the list with the array-content
                for (int i = 0; i < cleanStringArray.length; i++) {
                    finalInputList.addFirst(cleanStringArray[i].replaceAll(" ", ""));
                }
                PrGenerator.mainDatabase.setUserInputFiltered(finalInputList);

            } else {
                //adding the only word

                finalInputList.add(cleanString);

                //set the userinput
                PrGenerator.mainDatabase.setUserInputFiltered(finalInputList);

            }

        }


    }