Don't use indexOf as a poor man's startsWith. Move addcards to userutil