Man admits to sending 'degrading' messages to a young girl