Add guess type method from str