added new method getKeyword for startsWith rule