public static String format (String op)
	{
		String str="";
		for (int i = 0; i < op.length(); i++)
		{
			char c = op.charAt(i);
			
			
			switch (c) 
			{
				case '.':
					if (i < op.length() - 2)
					{
						if (op.toLowerCase().charAt(i+1) == ' ' )
						{
							char c1 = Character.toUpperCase(op.charAt(i + 2));
							i += 3;
							str = str +c+" "+c1 ;
						}
						else
						{
							char c1 = Character.toUpperCase(op.charAt(i + 1));
							i += 2;
							str = str +c+c1 ;
						}
					}
					break;
					
				case '?':
					if (i < op.length() - 2)
					{
						if (op.toLowerCase().charAt(i+1) == ' ' )
						{
							char c1 = Character.toUpperCase(op.charAt(i + 2));
							i += 3;
							str = str +c+" "+c1 ;
						}
						
					}
					break;
	
				default:
					break;
			}
			if (i == 0)
			{
				str = str + Character.toUpperCase(op.charAt(i));
			}
			else	
				str = str+op.charAt(i);
		}
		return str;
	}