Cleaner way to specify the type of the string