added handler for suggestion substitution in input