Modify check input method
Format output