tells you if a given string is magic