Disable 4 character usernames, use hyphens and spaces

I did find a code to place in my function.php that did do that my users can use uppercase/capital letters instead of lovercase in the username. So thats good. But I also would like to disable the 4 character limit in the username. So they can use maybe 3 characters instead. And I would also like if the could use a symbol like this – if they would create a username like “Thomas-Sorensen”. And my last wish is that they also can use spaces in the username like this “Thomas Sorensen”

I hope you can help with this. I have tried to use different plugins, but the plugins dont work. So I hope you got some html code or css I could use instead.