Keeping temporary variable (cleaner code)
Moving string extension out of the main file
Customizing error message