Cleanup input