All Downloads are FREE. Search and download functionalities are using the official Maven repository.

host.anzo.commons.utils.StringExUtils Maven / Gradle / Ivy

There is a newer version: 1.29
Show newest version
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", "");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy