Creating Info Script

Hi guys. I am trying to create a new chat Command. Using args, i would like the user to give the first 3 letters of the name of the person they are looking for. This will then return the ID of that player. So essentially, if my name was “ItsmeDrey”, if I triggered the command with “its” as the args, it should return info about me such as my ID. Please do let me know how I can scan the first 3 letters for the names of players online. Many thanks