Adding a new necessary function, str_to_var()