How to make a new variable from string of character