public static boolean containsFileExtension(String s)
	{
		if(Common.notNullOrEmpty(s))
		{
			if(s.contains("."))
			{
				// dot symbol at the start of string.
				if(s.indexOf(".") == 0)
					return false;

				// count occurrences of dot character
				// if greater than one return false.
				int count = 0;
				for (int i=0; i < s.length(); i++)
				{
					if (s.charAt(i) == '.')
						count++;

					if(count>1)
						return false;
				}

				// dot symbol at the end of string.
				if(s.lastIndexOf(".") == s.length()-1)
					return false;

				return true;
			}
			else
				return false;
		}
		else
			return false;
	}