cut command implemented along with argument check