Invalid syntax input handling implemented