Fixing possible integers passed to helper functions - using toString