Replacement of some words by numbers