"case-insensitive search" flag is not needed here because `ua` string is already lowercased.