ah. that seems like a program grammar issues. you need confirm the str don't included any "Special characters". before you use function to conversion it