Changed split() to a regex command so as to eliminate false id of keys