Adds helper function to get file
extension from a string