Fixed the newline error on pin input