fixed missing capitalize function if startsWith exists