Fixed regex to prevent crash on single character