Can someone please let me know how to do this?
You can do that:
String.charCodeAt(0) which return the ascii code of the first char un this String
and the opposite:
String.fromCharCode(32) which do a space
but you should tape that on google, you can easly find an answer
It looks like you're new here. If you want to get involved, click one of these buttons!