host.anzo.commons.utils.StringExUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-core Show documentation
Show all versions of commons-core Show documentation
Commons library to make me happy.
package host.anzo.commons.utils;
import org.jetbrains.annotations.NotNull;
/***
* @author ANZO
* @since 2/6/2023
*/
public class StringExUtils {
/***
* Remove all whitespaces/tabs and special symbols like and
* @param input input string
* @return trim string
*/
public static @NotNull String trimNBSP(@NotNull String input) {
return input.trim().replaceAll("\u00A0", "").replaceAll("\u202C", "");
}
}