Added strtolower() to getExtension()