Solved the bug which was crashing the app. Stupidest mistake: was appending the input string without emptying it + possible values array too