Set prefix if only one word is in input.