guard incorrect string formats