Added g (remove first and last letters in word) using replace regexp