diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -44,7 +44,7 @@ BIPPath.fromPathArray = function (path) {
 
 BIPPath.fromString = function (text, reqRoot) {
   // skip the root
-  if (text.startsWith('m/')) {
+  if (/^m\//i.test(text)) {
     text = text.slice(2)
   } else if (reqRoot) {
     throw new Error('Root element is required')
Do not use startsWith() as it has limited browser support