Implement input formating