Java tutorial
//package com.java2s; public class Main { public static String getPowerNumberString(String string) { String Current = string.replaceAll(" ", ""); char[] chars = Current.toCharArray(); String number = ""; for (int i = 8; i < chars.length - 4; i++) { number += chars[i]; } return number; } }