Updated word regex to increase accuracy