use '0' character for better detection width, and remove new line characters