After padding is removed, could the input string be considered to be numeric, i.e. could it be coerced to numeric. This function is vectorized over its one argument.
str_can_be_numeric(string)
A logical vector.
str_can_be_numeric("3")
#> [1] TRUE
str_can_be_numeric("5 ")
#> [1] TRUE
str_can_be_numeric(c("1a", "abc"))
#> [1] FALSE FALSE