Fix the value to accept string as well.