Adding Exception in case of wrong Syntax input