First commit, should return 0 if string is empty