endl -> \n to prevent flushing
Print words with given prefix