Some factoring and replace common words