Replace any word that starts with n F or a f with *

                if(array[i].words == "f" || array[i].words == "F") 

This checks if the word is f or F rather than whether it starts with f or F.

Leave a Comment