input cleanup.