package eu.mikroskeem.utils.text; import org.jetbrains.annotations.NotNull; public class TextUtils { /** * Check if string contains whitespace * @param str String to check * @return Whether string contained whitespace or not */ public static boolean hasWhitespace(@NotNull String str){ return !str.matches("\\S+"); } }