Casting text paramter to string