Use regex instead of upcase