Splitting Strings and Password Check